ParamsObjectMayNotBeNil = 1 | Params object may not be nil. |
EmptyArgument = 100 | If you passed a nil argument or empty string that shouldn't have been nil or empty string. |
InvalidArgument = 200 | If you passed an invalid parameter. |
OutOfMemory = 300 | Allocation failed, your out of memory at this point. |
Overflow = 310 | Internal error caused by overflow. |
SignatureCreationFailed = 400 | If signing a JWT failed. |
ShaFailure = 410 | If one of the SHA-2 functions fails (e.g. SHA-256). |
KeyParseFailure = 420 | If some PEM-formatted key string couldn't be parsed. |
Base64Failure = 425 | Base64(URL) encoding or decoding error. |
WrongKeyType = 450 | Returned if you passed the wrong private or public key type(e.g.trying to use an RSA key for ECDSA tokens, etc...). Especially for the ECDSA algorithms like ES256, ES384 and ES512 double - check that you passed keys of the correct curve, Only use the P - 256 curve for ES256, P - 384 (a.k.a.secp384r1) for ES384 and P - 521 (a.k.a.secp521r1) for ES512. |
SeedFailiure = 500 | Seed failure in seed generator. |
DecodeFailedInvalidTokenFormat = 600 | If the token is invalid (format-wise). |
DecodeFailedMissingSignature = 700 | If the token is invalid because it's missing the signature (despite having specified an algorithm that isn't "none"). |
UnsupportedAlgorithm = 800 | Returned if the JWT signing algorithm parameter that was passed is not supported (e.g. the used l8w8jwt library was built without support for that algorithm, e.g. Ed25519). |